package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_against;

import cn.com.api.mapper.ApiU_againstMapper;

import cn.com.api.service.ApiU_againstService;

/**
 * 
 **/
@Service
public class U_againstServiceImplBase {
	@Autowired
	private ApiU_againstMapper apiU_againstMapper;
    
    // 根据id获取
	public ApiU_against findU_againstById(Integer id){
		ApiU_against u_against = apiU_againstMapper.findU_againstById( id );
		return u_against;
	}
    
    //查看数据集
	public List<ApiU_against> findU_againsts(){
        List<ApiU_against> u_againsts = apiU_againstMapper.findU_againsts();
		return u_againsts;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_againstsByMap(HashMap condition){
        List<Map<String, Object>> u_againsts = apiU_againstMapper.findU_againstsByMap(condition);
		return u_againsts;
    }
    
	// 添加
	public int insertU_against(ApiU_against u_against){
		int ret_I= apiU_againstMapper.insertU_against(u_against);
		return ret_I;
	}

	// 修改
	public int updateU_against(ApiU_against u_against){
		int ret_I= apiU_againstMapper.updateU_against(u_against);
		return ret_I;
	}
	
    // 删除
	public int deleteU_against(Integer id){
		int ret_I= apiU_againstMapper.deleteU_against( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


